package com.cal.utms.core;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

public class MenuToGroupAction extends ActionSupport implements ModelDriven<MenuDto> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private MenuDto menuDto = new MenuDto();
	MenuModel menuModel = new MenuModel();
	private int groupid;

	public String getMainItem() {
		menuDto.setResult(menuModel.getAllMenuItems());
		return Action.SUCCESS;
	}

	@Override
	public MenuDto getModel() {
		return menuDto;
	}

	public MenuDto getMenuDto() {
		return menuDto;
	}

	public void setMenuDto(MenuDto menuDto) {
		this.menuDto = menuDto;
	}

	public int getGroupid() {
		return groupid;
	}

	public void setGroupid(int groupid) {
		this.groupid = groupid;
	}

}
